home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacUser ROM 45
/
MACUSER-ROM-VOL-45-1997-08.ISO.7z
/
MACUSER-ROM-VOL-45-1997-08.ISO
/
オンラインソフト
/
オンラインソフト⁄毎号掲載
/
インターネット関連
/
PageSpinner 2.0
/
Examples
/
JavaScript
/
Alert Stationery
next >
Wrap
Text File
|
1996-07-06
|
1KB
|
37 lines
<HTML><HEAD>
<TITLE>JavaScript Alert</TITLE>
</HEAD>
<BODY onLoad="window.alert('Welcome!');">
<H1>JavaScript Alert</H1>
<B>This stationery page contains an example of a link that displays an alert</B>
<P>
Please note that JavaScript is currently only available in Netscape Navigator 2.0 or higher.<BR>
<FONT COLOR="931B15">Do not assume that all in your audience are using a JavaScript enabled browser.</FONT>
<HR>
<P>
<A HREF="#"
onClick="window.alert('This is a special message to you!');"
onMouseOver="window.status='This is not a regular link'; return true">Example</A> of a link displaying an alert dialog.
<P>
<HR>
<P>
<B>How to use:</B>
<P>
Use something like this inside the contents of your page to create a link that will display an alert.
<XMP><A HREF="#"
onClick="window.alert('This is a special message to you!');"
onMouseOver="window.status='This is not a regular link'; return true">Example</A> of a link displaying an alert dialog.
</XMP>
<P>
<HR>
<P>
You can use the following Body tag:<P>
<CODE><BODY onLoad="window.alert('Welcome!');"></CODE>
<P>
to display an <BLINK>annoying</BLINK> alert every time the page is loaded.
</BODY>
</HTML>